﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CommandDefinitions.ascx.cs" Inherits="Web.Cms.Commands.CommandDefinitions" %>
<table border="0" cellpadding="2" cellspacing="2" style="width: 100%">
    <tr>
        <td align="center" class="InputBox" colspan="2" valign="top">
            <asp:Label ID="lblUpdateStatus" runat="server"></asp:Label></td>
    </tr>
    <tr>
        <td class="InputBox" style="width: 227px" valign="top">
            <asp:TreeView ID="tvCommands" runat="server" ImageSet="XPFileExplorer" NodeIndent="15"
                ShowLines="True" Width="100%" OnSelectedNodeChanged="tvCommands_SelectedNodeChanged">
                <ParentNodeStyle Font-Bold="False" />
                <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
                <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" HorizontalPadding="0px"
                    VerticalPadding="0px" />
                <NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black" HorizontalPadding="2px"
                    NodeSpacing="0px" VerticalPadding="2px" />
            </asp:TreeView>
        </td>
        <td class="InputBox" valign="top">
            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 259px;">
                <tr>
                    <td >
                        <strong>Mã: </strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtCommandID" runat="server" Width="33px" Enabled="False" ReadOnly="True"></asp:TextBox></td>
                </tr>
                <tr>
                    <td >
                        <strong>Tên chức năng:</strong></td>
                    <td>
                        <asp:TextBox ID="txtCommandTitle" runat="server" Width="216px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td >
                        <strong>Chức năng cha:</strong></td>
                    <td>
                        <asp:DropDownList ID="dropCommandParent" runat="server" Width="190px">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td  style="height: 22px">
                        <strong>Lệnh:</strong></td>
                    <td style="height: 22px">
                        <asp:DropDownList ID="dropCommandKey" runat="server" Width="190px">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td  style="height: 22px">
                        <strong>Thứ tự:</strong></td>
                    <td style="height: 22px">
                        <asp:DropDownList ID="dropPriority" runat="server" Width="54px">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td >
                        <strong>Hiển thị:</strong></td>
                    <td>
                        <asp:CheckBox ID="chkVisible" runat="server" /></td>
                </tr>
                <tr>
                    <td >
                        <strong>Sử dụng:</strong></td>
                    <td>
                        <asp:CheckBox ID="chkEnable" runat="server" /></td>
                </tr>
                <tr>
                    <td >
                        <strong>Is Super Admin:</strong></td>
                    <td>
                        <asp:CheckBox ID="chkIsSuperAdmin" runat="server" /></td>
                </tr>
                <tr>
                    <td colspan="2"><hr style="width:90%" /></td>
                </tr>
                <tr>
                    <td align="left" colspan="2">
                        <table border="0" cellspacing="2" cellpadding="2" width="300px">
                            <tr>
                                <td>
                                    <asp:GridView ID="grdRolePermisions" runat="server" AutoGenerateColumns="False" SkinID="AdminGrid">
                                        <Columns>
                                            <asp:TemplateField HeaderText="">
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="chkRole" runat="server" />
                                                    <asp:Label ID="lblRoleID" runat="server" Visible="false" Text='<%# Eval("RoleID") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField HeaderText="Nh&#243;m" DataField="RoleName" />
                                            <asp:TemplateField HeaderText="Đọc">
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="chkRead" runat="server" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Ghi">
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="chkWrite" runat="server" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2" style="height: 24px">
                        &nbsp;&nbsp;<asp:Button ID="btnUpdate" runat="server" OnClick="btnUpdate_Click" SkinID="AdminButtonUpdate"
                            ToolTip="Cập nhật" />&nbsp;
                        <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" SkinID="AdminButtonInsert"
                            ToolTip="Thêm" />&nbsp;
                        <asp:Button ID="btnDelete" runat="server" OnClick="btnDelete_Click" SkinID="AdminButtonDelete"
                            ToolTip="Xoá" /></td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>